package org.example;

public class HttpStatus2 {

    private final int code;
    private final String status;

    private HttpStatus2(int code, String status) {
        this.code = code;
        this.status = status;
    }

    public static final HttpStatus2 OK = new HttpStatus2(200, "OK");
    public static final HttpStatus2 NOT_FOUND = new HttpStatus2(404, "NOT_FOUND");


    public int getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }


    @Override
    public String toString() {
        return "HttpStatus2{" +
                "code=" + code +
                ", status='" + status + '\'' +
                '}';
    }
}
